package cate.game.role.pvp.minecraft.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdMinecraft;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "矿洞争霸-采集区 收取挂机奖励 请求")
public class MinecraftMineAreaGetHangRewardReq implements MsgInput {
    @NoteField("层数")
    public int layer;
    @NoteField("配置ID")
    public int tid;

    @Override
    public MsgConfig conf() {
        return MsgIdMinecraft.MINECRAFT_MINE_AREA_GET_HANG_REWARD_REQ;
    }

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getPvp().minecraft.gatherPO.getHangReward(layer, tid);
    }
}
